package com.liming.moremoduledemo;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.alibaba.android.arouter.launcher.ARouter;

public class MainActivity extends AppCompatActivity {

    private TextView tvName;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        tvName.setOnClickListener(v -> {
            ARouter.getInstance().build("/order/OrderMainActivity").navigation();
        });
    }

    private void initView() {
        tvName = findViewById(R.id.tv_name);
    }
}